home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / comms / internetinstaller / cp6.lha / cp6 / Install.CP6 < prev    next >
Text File  |  1996-01-31  |  27KB  |  992 lines

  1. ;Installer V1 For Control Panel 6 
  2. ;$VER: ControlPanel6 (160196)
  3. ;©Martin Hunt 1996
  4. ;
  5.  
  6. (set msg1txt "Control Panel 6\nMartin Hunt 1996\n\nThis Program Is Shareware\nIf you use the program regularly\nplease send me the appropriate fee.\n\n")
  7. (set msg2txt "Please read register.readme\nfor registration details\n\nFor Help E-Mail: Martin@mchunt.demon.co.uk")
  8. (set msgtxt (cat msg1txt msg2txt))
  9. (message msgtxt)
  10. (welcome)
  11. (set amitcpdir
  12.    (askdir
  13.        (prompt "Where is AmiTCP installed?")
  14.        (help @askdir-help)
  15.        (default "dh1:amitcp")
  16.    )
  17. )
  18.  
  19. (set @default-dest amitcpdir)
  20. (makeassign "amitcp" amitcpdir
  21.  (safe)
  22. )
  23.  
  24. (copyfiles
  25.    (prompt "Copying Amiconnect to " acdest )
  26.    (help @copyfiles-help)
  27.    (source "mainprogram")
  28.    (dest "amitcp:bin")
  29.    (all)
  30.    (infos)
  31.    (confirm)
  32. )
  33.  
  34. (makedir "amitcp:docs"
  35.   (infos)
  36.   (safe)
  37. )
  38.  
  39. (set docdest
  40.    (askdir
  41.        (prompt "Where do you want the documentation to be installed?")
  42.        (help "You are strongly advised to accept the deafult directory\n as this will enable context sensitive help for the preferences editor")
  43.        (default "amitcp:docs")
  44.    )
  45. )
  46.  
  47. (copyfiles
  48.    (prompt "Copying documentation to " docdest )
  49.    (help @copyfiles-help)
  50.    (source "docs")
  51.    (dest docdest)
  52.    (infos)
  53.    (all)
  54.    (confirm)
  55. )
  56.  
  57. (set installnews
  58.   (askbool
  59.      (default 1)
  60.      (prompt "Do you wish to install a new postnews script\nso that GRn can postnews.\nThis script will also allow GRn and other newseditors\nto use Newsed's group signature option.")
  61.      (help @ask-bool)
  62.   )
  63. )
  64.  
  65. (if (= installnews 1)
  66.     (  ( set whichpostnews
  67.            (askbool
  68.              (default 0)
  69.              (prompt "Are you a Demon Internet subscriber?")
  70.              (help "Does you email address end in .demon.co.uk?\nIf it does select Yes else select No")
  71.            )
  72.        )
  73.        (if (= whichpostnews 0)
  74.            (  (copyfiles
  75.                   (prompt "Copying PostNews to Amitcp:bin ")
  76.                   (help @copyfiles-help)
  77.                   (source "amitcp/bin/postnews.nntpput")
  78.                   (dest "amitcp:bin")
  79.                   (newname "postnews")
  80.                   (confirm)
  81.               )
  82.               (copyfiles
  83.                   (prompt "Copying NNTP Put to Amitcp:bin ")
  84.                   (help @copyfiles-help)
  85.                   (source "amitcp/bin/nntpput")
  86.                   (dest "amitcp:bin")
  87.                   (confirm)
  88.               )
  89.               (copyfiles
  90.                   (prompt "Copying Sendnews to Amitcp:bin ")
  91.                   (help @copyfiles-help)
  92.                   (source "amitcp/bin/sendnews")
  93.                   (dest "amitcp:bin")
  94.                   (confirm)
  95.               )
  96.  
  97.            )
  98.            (copyfiles
  99.                   (prompt "Copying PostNews to Amitcp:bin ")
  100.                   (help @copyfiles-help)
  101.                   (source "amitcp/bin/postnews.demon")
  102.                   (dest "amitcp:bin")
  103.                   (newname "postnews")
  104.                   (confirm)
  105.            )
  106.  
  107.        )
  108.        (copyfiles
  109.               (prompt "Copying Common News Stuff to Amitcp:bin ")
  110.               (help @copyfiles-help)
  111.               (source "amitcp/bin/all")
  112.               (dest "amitcp:bin")
  113.               (all)
  114.               (confirm)
  115.        )
  116.  
  117.     )
  118.     (set fo 0)
  119. )
  120.  
  121. (set installmail
  122.   (askbool
  123.      (default 1)
  124.      (prompt "Do you wish to install the mail daemon \nso that you can receive incoming mail")
  125.      (help @ask-bool)
  126.   )
  127. )
  128. (if (= installmail 1)
  129.     (
  130.       (copyfiles
  131.         (prompt "Copying Mail Daemon to Amitcp:serv ")
  132.         (help @copyfiles-help)
  133.         (source "amitcp/serv")
  134.         (all)
  135.         (dest "amitcp:serv")
  136.         (infos)
  137.         (confirm)
  138.       )
  139.  
  140.       (copyfiles
  141.          (prompt "Appending Mail Daemon Inetd Entry to amitcp:db/inetd ")
  142.          (help @copyfiles-help)
  143.          (source "amitcp/db/inetd.conf.add")
  144.          (dest "t:")
  145.          (infos)
  146.       )
  147.  
  148.       (run "type t:inetd.conf.add >> amitcp:db/inetd.conf")
  149.     )
  150. )
  151. (copylib
  152.    (prompt "Copying Apig.Library to Libs:" )
  153.    (help @copyfiles-help)
  154.    (source "Libs/apig.library")
  155.    (dest "Libs:")
  156.    (infos)
  157.    (confirm)
  158. )
  159.  
  160. (copylib
  161.    (prompt "Copying Rexxserdev.Library to Libs:" )
  162.    (help @copyfiles-help)
  163.    (source "Libs/rexxserdev.library")
  164.    (dest "Libs:")
  165.    (infos)
  166.    (confirm)
  167. )
  168.  
  169. (copylib
  170.    (prompt "Copying Rexxreqtools.Library to Libs:" )
  171.    (help @copyfiles-help)
  172.    (source "Libs/rexxreqtools.library")
  173.    (dest "Libs:")
  174.    (infos)
  175.    (confirm)
  176. )
  177.  
  178. (copylib
  179.    (prompt "Copying Rexxsupport.Library to Libs:" )
  180.    (help @copyfiles-help)
  181.    (source "Libs/rexxsupport.library")
  182.    (dest "Libs:")
  183.    (infos)
  184.    (confirm)
  185. )
  186.  
  187. (set cp5dest
  188.    (askdir
  189.        (prompt "Where do you want Control Panel 6 to be installed?")
  190.        (help @askdir-help)
  191.        (default "sys:wbstartup")
  192.    )
  193. )
  194.  
  195. (copyfiles
  196.    (prompt "Copying AmiTCP Control Panel to " @default-dest )
  197.    (help @copyfiles-help)
  198.    (source "ControlPanel6")
  199.    (dest cp5dest)
  200.    (infos)
  201.    (confirm)
  202. )
  203. (copyfiles
  204.    (prompt "Copying AmiTCP Control Panel to " @default-dest )
  205.    (help @copyfiles-help)
  206.    (source "c/cp6.exe")
  207.    (dest "c:")
  208.    (confirm)
  209. )
  210.  
  211. (set cp5
  212.    (askdir
  213.        (prompt "Where do you want CP6's auxillary programs to be installed?")
  214.        (help @askdir-help)
  215.        (default "amitcp:cp")
  216.    )
  217. )
  218.  
  219. (makeassign "CP" cp5
  220.   (safe)
  221. )
  222.  
  223. (copyfiles
  224.  (prompt "Copying AmiTCP Control Panel's Auxillary Programs to "cp5)
  225.    (help @copyfiles-help)
  226.    (source "cp")
  227.    (all)
  228.    (dest cp5)
  229.    (infos)
  230.    (confirm)
  231. )
  232.  
  233. (makedir "cp:prefs"
  234.   (prompt)
  235.   (infos)
  236.   (safe)
  237. )
  238.  
  239. (Copyfiles
  240. (prompt "Copying AmiTCP Control Panel Default Prefs to "cp5"/prefs")
  241.    (help @copyfiles-help)
  242.    (source "prefs")
  243.    (all)
  244.    (dest "cp:prefs")
  245.    (infos)
  246.    (confirm)
  247. )
  248.  
  249. (Copyfiles
  250.       (prompt "Copying AmiTCP Control Panel Main Prefs to s:cp.config")
  251.       (help @copyfiles-help)
  252.       (source "s/cp.config.amiconnect")
  253.       (dest "s:")
  254.       (confirm)
  255.       (newname "cp.config")
  256. )
  257.  
  258. (makedir "amitcp:usr"
  259.   (infos)
  260.   (safe)
  261. )
  262. (makedir "amitcp:usr/mail"
  263.   (infos)
  264.   (safe)
  265. )
  266. (makedir "amitcp:usr/news"
  267.   (infos)
  268.   (safe)
  269. )
  270. (makedir "amitcp:usr/spool"
  271.   (infos)
  272.   (safe)
  273. )
  274. (makedir "amitcp:usr/lib"
  275.   (infos)
  276.   (safe)
  277. )
  278. (makedir "env:sana2"
  279.   (infos)
  280.   (safe)
  281. )
  282. (makedir "envarc:sana2"
  283.   (infos)
  284.   (safe)
  285. )
  286.  
  287. (message "I now need to setup your \nusr,news,mail,spool and lib directories\nIf this is your first AmiTCP setup\n just use the defaults\nif not specify your current directories" (SAFE))
  288.  
  289. (set usrdir
  290.    (askdir
  291.        (prompt "Where is your usr: directory")
  292.        (help "This is the directory where all your \n news,mail,lib,spool directories are usually kept")
  293.        (default "amitcp:usr")
  294.    )
  295. )
  296.  
  297. (set uunewsdir
  298.    (askdir
  299.        (prompt "Where is your uunews: directory")
  300.        (help "This is the directory where all your \n news articles will be stored")
  301.        (default "amitcp:usr/news")
  302.    )
  303. )
  304. (set uumaildir
  305.    (askdir
  306.        (prompt "Where is your uumail: directory")
  307.        (help "This is the directory where all your \n mail will be stored")
  308.        (default "amitcp:usr/mail")
  309.    )
  310. )
  311. (set uulibdir
  312.    (askdir
  313.        (prompt "Where is your uulib: directory")
  314.        (help "This is the directory where various files are stored/n including your newsgroup, signature, header and config files/n/n It is NOT your libs: library directory")
  315.        (default "amitcp:usr/lib")
  316.    )
  317. )
  318. (makeassign "uulib" uulibdir (SAFE))
  319. (set uuspooldir
  320.    (askdir
  321.        (prompt "Where is your uuspool: directory")
  322.        (help "This is the directory where all your \n outgoing mail, news and the incoming news batchfile \nwill be stored")
  323.        (default "amitcp:usr/spool")
  324.    )
  325. )
  326.  
  327. (set intro ("; This file contain assigns to important directories\n"))
  328. (set intro2 ("; You may need to change the from what values are set\n"))
  329. (set firststline ("path amitcp:bin add \n"))
  330. (set line1 ("assign usr: %s \n" usrdir))
  331. (set line2 ("assign uunews: %s \n" uunewsdir))
  332. (set line3 ("assign uumail: %s \n" uumaildir))
  333. (set line4 ("assign uuspool: %s \n" uuspooldir))
  334. (set line5 ("assign uulib: %s \n" uulibdir))
  335. (set line6 ("assign inet: amitcp: \n"))
  336.  
  337. (textfile
  338.    (dest "amitcp:bin/amiconnect.dos")
  339.    (append intro)
  340.    (append intro2)
  341.    (append firstline)
  342.    (append line1)
  343.    (append line2)
  344.    (append line3)
  345.    (append line4)
  346.    (append line5)
  347.    (append line6)
  348. )
  349.  
  350. (textfile
  351.    (dest "t:newsgroups")
  352.    (append "comp.sys.amiga.announce 7\n")
  353.    (append "comp.sys.amiga.misc 7\n")
  354.    (append "demon.ip.support.amiga 7\n")
  355. )
  356.  
  357. (textfile
  358.    (dest "uulib:seq")
  359.    (append "1")
  360. )
  361.  
  362. (run "type t:newsgroups >> uulib:newsgroups"
  363. )
  364.  
  365.  
  366. (set line1 ("Assign Amitcp: %s \n" amitcpdir))
  367. (set line15 ("Assign Inet: %s \n" amitcpdir))
  368. (set line2 ("Assign Cp: %s \n" cp5))
  369. (set line3 ("path amitcp:bin add \n"))
  370. (set line4 ("path cp: add \n"))
  371.  
  372. (startup "CP6"
  373.    (prompt "Adding assigns and paths to s:user-startup")
  374.    (help @startup-help)
  375.    (command line1)
  376.    (command line15)
  377.    (command line2)
  378.    (command line3)
  379.    (command line4)
  380. )
  381. (message "We must now setup Amiconnect\nWe will start with your User Details"
  382. (help "You need to set up various environment variable so that Amiconnect will function correctly.\nThe following part of the installer will assist in this procedure")
  383. (safe)
  384. )
  385. (set defuser "user"
  386. )
  387. (set defdomain "domain"
  388. )
  389. (set defnode "node"
  390. )
  391.  
  392. (set username
  393.    (askstring
  394.       (prompt "Enter Your User Name")
  395.       (help "Your user name is the bit before the @ in you email address\ne.g. USERNAME@nodename.domainname\nthis should also be EXACTLY the same as you entered in the Amitcp installer")
  396.       (default defuser)
  397.    )
  398. )
  399. (set nodename
  400.    (askstring
  401.       (prompt "Enter Your Node Name")
  402.       (help "Your node name is the bit directly after the @ in you email address\ne.g. username@NODENAME.domainname")
  403.       (default defnode)
  404.    )
  405. )
  406. (set domainname
  407.    (askstring
  408.       (prompt "Enter Your Domain Name")
  409.       (help "Your domain name is the last bit of your email address\nThis may be more than one word separated by a . such as .demon.co.uk\ne.g. username@nodename.DOMAINNAME\n\nyour domain name must start with a .")
  410.       (default defdomain)
  411.    )
  412. )
  413. (set acemail ("%s@%s%s" username nodename domainname))
  414. (textfile
  415.    (dest "env:ac!email")
  416.    (append acemail)
  417. )
  418. (set defreal "Real"
  419. )
  420. (set realname
  421.    (askstring
  422.       (prompt "Enter Your Real Name")
  423.       (help "This is the name which will be sent with your mail and news messages\nIt helps people see who you really are, if you do not set this you will be known as realname")
  424.       (default defreal)
  425.    )
  426. )
  427.  
  428. (textfile
  429.    (dest "env:realname")
  430.    (append realname)
  431. )
  432. (textfile
  433.    (dest "envarc:realname")
  434.    (append realname)
  435. )
  436. (set defhome "Home"
  437. )
  438.  
  439. (set home
  440.    (askdir
  441.        (prompt "Where is your home: directory?")
  442.        (help "This is the directory which many programs use to store data relevant to the current user.\n\nIt is also quite often the default directory for FTP downloads and saving WWW pages")
  443.        (default defhome)
  444.    )
  445. )
  446. (textfile
  447.    (dest "env:ac!home")
  448.    (append home)
  449. )
  450.  
  451. (message "We now need to setup your modem details, this may be tricky, so have your modem manual handy."
  452.   (safe)
  453. )
  454.  
  455. (set serial
  456.    (askfile
  457.       (prompt "What serial device driver are you using?")
  458.       (help "This is the program that allows the Amiga to talk to the modem via your serial port.\n\nThe driver supplied with your Amiga is called serial.device but you are advised to use an improved driver such as artser.device")
  459.       (default "devs:serial.device")
  460.     )
  461. )
  462.  
  463. (textfile
  464.    (dest "env:ac!serial")
  465.    (append serial)
  466. )
  467.  
  468. (set devno
  469.    (asknumber
  470.       (prompt "What serial port number are you using?")
  471.       (help "The inbuilt serial port is 0, unless you have an additional serial ports added to your Amiga you should use this port")
  472.       (default "0")
  473.    )
  474. )
  475.  
  476. (textfile
  477.    (dest "env:ac!devno")
  478.    (append devno)
  479. )
  480.  
  481. (set bdrte
  482.    (askchoice
  483.       (prompt "What baud rate do you wish to use?")
  484.       (help "This is the rate that your Amiga communicates with the modem.\n\nIf you are using a 14400 modem use 19200 or 38400\nIf you are using a 28800 modem use 38400 or 57600\n\nPlease note a standard Amiga will not cope with rates above 57600.")
  485.       (choices "2400" "4800" "9600" "19200" "38400" "57600" "115200")
  486.       (default 3)
  487.    )
  488. )
  489. (if (= bdrte 0) (set baudrate 2400))
  490. (if (= bdrte 1) (set baudrate 4800))
  491. (if (= bdrte 2) (set baudrate 9600))
  492. (if (= bdrte 3) (set baudrate 19200))
  493. (if (= bdrte 4) (set baudrate 38400))
  494. (if (= bdrte 5) (set baudrate 57600))
  495. (if (= bdrte 6) (set baudrate 115200))
  496. (textfile
  497.    (dest "env:ac!baudrate")
  498.    (append baudrate)
  499. )
  500.  
  501. (set slip
  502.    (askchoice
  503.       (prompt "What protocol do you wish to \nuse to connect to the net?")
  504.       (help "This is the tcp/ip protocol that you will use to interact with internet, the three main protocols are\n\nSLIP - Serial Line Internet Protocol\nCSLIP as above with compression\nPPP - Point to Point Protocol")
  505.       (choices "SLIP" "CSLIP" "PPP")
  506.       (default 1)
  507.    )
  508. )
  509.  
  510. (if (= slip 0) (set slipdev "SLIP"))
  511. (if (= slip 1) (set slipdev "CSLIP"))
  512. (if (= slip 2) (set slipdev "PPP"))
  513.  
  514. (textfile
  515.    (dest "env:ac!slipdev")
  516.    (append slipdev)
  517. )
  518.  
  519. (set init
  520.    (askstring
  521.       (prompt "Enter Modem Initialisation String")
  522.       (help "This is the command you send to you modem to reset/initialise it.\n This is nearly always ATZ")
  523.       (default "ATZ")
  524.    )
  525. )
  526.  
  527. (textfile
  528.    (dest "env:ac!init")
  529.    (append init)
  530. )
  531.  
  532. (set dial
  533.    (askstring
  534.       (prompt "Enter Your Modems Dial Command")
  535.       (help "This will depend on whether you are connected to a pulse dial exchange or a tone dial compatable exchange\nMost modern exchanges are tone dial and the usual command is ATDT, for pulse dial it is usually ATDP.")
  536.       (default "ATDT")
  537.    )
  538. )
  539.  
  540. (textfile
  541.    (dest "env:ac!dial")
  542.    (append dial)
  543. )
  544.  
  545. (set helpdtr "The DTR (Data Terminal Ready) signal tells the modem to drop the call once all data has stopped.\n As amiconnect needs to stop data transmission while it switches from the serial device to the network (slip/ppp) driver, we need to overide")
  546. (set helpdtr2 "this signal.\n\n On a USRobotics Sportster modem this command is AT&d0")
  547.  
  548. (set helpdtrt
  549.   (cat helpdtr helpdtr2)
  550. )
  551.  
  552. (set dtr_on
  553.    (askstring
  554.       (prompt "Enter the command to\noveride DTR (Data Terminal Ready)")
  555.       (help helpdtrt)
  556.       (default "AT&d0")
  557.     )
  558. )
  559.  
  560. (textfile
  561.    (dest "env:ac!dtr_on")
  562.    (append dtr_on)
  563. )
  564.  
  565. (set dtr_off
  566.    (askstring
  567.       (prompt "Enter the command to disable\n the DTR (Data Terminal Ready) overide")
  568.       (help "This is the command which resets the DTR (Data Terminal Ready) overide to off.\n\nFor a USRobotics Sportster this is AT&d2")
  569.       (default "AT&d2")
  570.     )
  571. )
  572.  
  573. (textfile
  574.    (dest "env:ac!dtr_off")
  575.    (append dtr_off)
  576. )
  577.  
  578. (set hang
  579.    (askstring
  580.       (prompt "Enter the command to hang up the modem")
  581.       (help "This command is needed to disconnect your modem call to your service provider, failure to set this correctly could lead to a very large telephone bill!\n\nThe usual command is ATH")
  582.       (default "ATH")
  583.    )
  584. )
  585.  
  586. (textfile
  587.    (dest "env:ac!hang")
  588.    (append hang)
  589. )
  590.  
  591. (set cmd
  592.    (askstring
  593.       (prompt "What is the escape code to return your modem to command mode?")
  594.       (help "This command is needed to switch your modem into its command mode in the middle of data transmission. It is referred to commonly as the escape code.\n\nOn USRobotics Sportster Modems it is +++")
  595.       (default "+++")
  596.    )
  597. )
  598.  
  599. (textfile
  600.    (dest "env:AC!cmd")
  601.    (append cmd)
  602. )
  603.  
  604. (set dte1 "This is probably the most problematic command to enter.\n In manuals it may be referred to as the DTE Rate, Terminal to Modem, serial port rate or simply Data Rate.")
  605. (set dte2 "\nYou need to set this command so that the data rate is fixed.\n\n On a USRobotics Sportster the command is at&b1\n\nOn some other modems the command is /n")
  606.  
  607. (set dtehelp
  608.   (cat dte1 dte2)
  609. )
  610.  
  611. (set datarate
  612.    (askstring
  613.       (prompt "Enter the command to set the serial port data rate (DTE)")
  614.       (help dtehelp)
  615.       (default "AT&b1")
  616.    )
  617. )
  618.  
  619. (textfile
  620.    (dest "env:ac!datarate")
  621.    (append datarate)
  622. )
  623.  
  624. (set ok
  625.    (askstring
  626.       (prompt "What string does your modem return when a command has been completed successfully?")
  627.       (help "This is usually OK.\n\nIf this isn't set correctly Amiconnect will not know whether your modem has completed what it has been asked to do")
  628.       (default "OK")
  629.    )
  630. )
  631.  
  632. (textfile
  633.    (dest "env:ac!ok")
  634.    (append ok)
  635. )
  636. (message "We now need to enter details about your service provider"
  637. (SAFE)
  638. )
  639.  
  640. (set ip1 "This is the number which you will be given when you open your internet")
  641. (set ip2 "account (unless you have dynamic access), it is in the form of 4 numbers")
  642. (set ip3 "such as ???.???.???.???\n\nIf you have dynamic access and are using PPP")
  643. (set ip4 "please use 0.0.0.0 as your ip number")
  644.  
  645. (set iphelp
  646.   (cat ip1 ip2 ip3 ip4)
  647. )
  648.  
  649. (set ipno
  650.    (askstring
  651.       (prompt "Enter Your IP Number")
  652.       (help iphelp)
  653.       (default "0.0.0.0")
  654.    )
  655. )
  656.  
  657. (textfile
  658.    (dest "env:ac!ipno")
  659.    (append ipno)
  660. )
  661.  
  662.  
  663. (set gate
  664.    (askstring
  665.       (prompt "Enter your providers IP number")
  666.       (help "This is the numeric IP address of your internet providers main computer that you logon to, often called the gateway address.")
  667.       (default "???.???.???.???")
  668.    )
  669. )
  670.  
  671. (textfile
  672.    (dest "env:ac!gate")
  673.    (append gate)
  674. )
  675.  
  676. (set defmail ("post%s" domainname))
  677. (set mailserver
  678.    (askstring
  679.       (prompt "Enter the address of your providers mailserver")
  680.       (help "The mailserver is the computer which stores your email, you need to enter this address inorder to collect mail.\nIt is often called post.provider.name, gpo.provider.name or mail.provider.name")
  681.       (default defmail)
  682.    )
  683. )
  684.  
  685. (textfile
  686.    (dest "env:ac!mailserver")
  687.    (append mailserver)
  688. )
  689. (set defnews ("news%s" domainname))
  690. (set newsserver
  691.    (askstring
  692.       (prompt "Enter the address of your providers news server")
  693.       (help "The news server is the computer which stores usenet news, you need to enter this if you wish to download news.\n This is commonly news.provider.name.")
  694.       (default defnews)
  695.    )
  696. )
  697.  
  698. (textfile
  699.    (dest "env:ac!newsserver")
  700.    (append newsserver)
  701. )
  702.  
  703. (set pop1
  704.    (askstring
  705.       (prompt "Enter the name of your main pop")
  706.       (help "It is suggested that you enter the location of the main pop here such as London.")
  707.       (default "Yourtown")
  708.    )
  709. )
  710.  
  711. (textfile
  712.    (dest "env:ac!pop1")
  713.    (append pop1)
  714. )
  715.  
  716. (set phone1
  717.    (askstring
  718.       (prompt "Enter the phone number of your main pop")
  719.       (help "Enter the phone number you usually dial to connect your computer to the internet")
  720.       (default "01234 5678")
  721.    )
  722. )
  723.  
  724. (textfile
  725.    (dest "env:ac!phone1")
  726.    (append phone1)
  727. )
  728.  
  729. (set pop2
  730.    (askstring
  731.       (prompt "Enter the name of your backup pop")
  732.       (help "Many providers have additional pops which you may use when your pop is down or engaged, if so enter your second choice of pop here.")
  733.       (default "Yourtown")
  734.    )
  735. )
  736.  
  737. (textfile
  738.    (dest "env:ac!pop2")
  739.    (append pop2)
  740. )
  741.  
  742. (set phone2
  743.    (askstring
  744.       (prompt "Enter the phone number of your backup pop")
  745.       (help "Enter the phone number you dial if your first pop is unable to connect your computer to the internet")
  746.       (default "01234 5678")
  747.    )
  748. )
  749.  
  750. (textfile
  751.    (dest "env:ac!phone2")
  752.    (append phone2)
  753. )
  754.  
  755.  
  756. (set login1 "The standard login procedure will cope with most service providers. If your login procedure is similar to that below please use the standard procedure, otherwise you will need to use the advanced login")
  757. (set login2 "\n\nSystem sends login/username prompt, you reply with username\nThe system then sends password prompt, you reply with your password\nThe system then asks what protocol you are using (slip or PPP), you reply either slip or ppp\n")
  758. (set login3 "you are then logged on and on the net.\n\n the actual prompts can be changed but they need to be in the above order and shouldn't have any additional requests for information\n\n")
  759. (set login4 "The advanced login requires you to enter quite a bit of data, so it is advised that if unsure you try the standard login first and then if that fails use the advanced login script to attempt to setup the advanced login.")
  760.  
  761. (set loginhelp
  762.    (cat login1 login2 login3 login4)
  763. )
  764.  
  765. (set logintype
  766.    (askbool
  767.       (prompt "Do you want to use the standard or advanced login procedure?\n\n(Please see help for more details)")
  768.       (help loginhelp)
  769.       (choices "Standard Login" "Advanced Login")
  770.       (default 1)
  771.    )
  772. )
  773.  
  774. (if (= logintype 1)
  775.     ;Standard login clauses
  776.    (
  777.       (set acprompt
  778.          (askstring
  779.             (prompt "Enter login prompt")
  780.             (help "This is the initial prompt which is usually Login: or User:\nIt is often advisable to miss off the first character so login: would be ogin:")
  781.             (default "ogin:")
  782.          )
  783.       )
  784.       (textfile
  785.          (dest "env:ac!prompt")
  786.          (append acprompt)
  787.       )
  788.       (set loginname
  789.          (askstring
  790.             (prompt "Enter your response to the login prompt")
  791.             (help "This is usually your username or your nodename")
  792.             (default username)
  793.          )
  794.       )
  795.       (textfile
  796.          (dest "env:ac!loginname")
  797.          (append loginname)
  798.       )
  799.       (set passprompt
  800.          (askstring
  801.             (prompt "Enter the prompt that requests your password")
  802.             (help "What text is displayed just before you usually enter your password?\nThis is usually pass: or password:")
  803.             (default "assword:")
  804.          )
  805.       )
  806.       (textfile
  807.          (dest "env:ac!passprompt")
  808.          (append passprompt)
  809.       )
  810.       (set password
  811.          (askstring
  812.             (prompt "Enter your password")
  813.             (help "What do you type when asked for your password")
  814.             (default "********")
  815.          )
  816.       )
  817.       (textfile
  818.          (dest "env:ac!password")
  819.          (append password)
  820.       )
  821.       (textfile 
  822.    (dest "env:ac!loginscript")
  823.              (append "NOCUSTOMSCRIPTNEEDED")
  824.       )
  825.       (set protocol
  826.          (askstring
  827.             (prompt "Enter the protocol prompt")
  828.             (help "This is the prompt that asks what protocol you are using.\nAmiconnect will reply to this prompt with either slip or ppp depending on how you set up the modem details")
  829.             (default "rotocol:")
  830.          )
  831.       )
  832.       (textfile
  833.          (dest "env:ac!protocol")
  834.          (append protocol)
  835.       )
  836.    )
  837.  
  838.    (
  839.  
  840.       (set sendcmd "#")
  841.  
  842.       (textfile
  843.          (dest "amitcp:db/aclogonscript")
  844.       )
  845.  
  846.       (until (= sendcmd "\0")
  847.         (
  848.          (set rcvcmd
  849.             (askstring
  850.                (prompt "Enter Prompt\n\n(leave blank to exit dialscript editor")
  851.                (help "Enter the text which your internet provider has sent for you to reply to, e.g. login:")
  852.             )
  853.          )
  854.  
  855.          (set sendcmd
  856.             (askstring
  857.                (prompt "Enter Response To Prompt - " rcvcmd " \n\n(leave blank to exit dialscript editor)")
  858.                (help "Enter the text which you send after receiving the prompt mentioned in previous data entry box")
  859.             )
  860.          )
  861.          (debug rcvcmd sendcmd)
  862.  
  863.          (if (and (= rcvcmd "\0") (= sendcmd "\0"))
  864.  
  865.                  (set fred "fred")
  866.  
  867.                  (
  868.                    (textfile
  869.                      (dest "t:dialtest")
  870.                      (append rcvcmd)
  871.                      (append "\n")
  872.                      (append sendcmd)
  873.                      (append "\n")
  874.                    )
  875.                    (run "type t:dialtest >> amitcp:db/aclogonscript")
  876.                    (textfile
  877.                        (dest "env:ac!loginscript")
  878.                        (append "amitcp:db/acloginscript")
  879.                    )
  880.                  )
  881.  
  882.          )
  883.         )
  884.      )
  885.  
  886.    )
  887. )
  888.  
  889. (run "copy env:ac!#? envarc:")
  890. (run "copy env:realname envarc:")
  891.  
  892. (set editconfig
  893.    (askbool
  894.       (prompt "Do you wish to create uulib:config?\n\nYou need this file for various mail and news programs")
  895.       (help "If you don't create this file you may have big problems")
  896.    )
  897. )
  898.  
  899. (if (= editconfig 1)
  900.  (
  901.       (set line1 ("UserName   %s" username))
  902.       (set line2 ("RealName   %s" realname))
  903.       (set line3 ("Nodename   %s" nodename))
  904.       (set line4 ("Hostname   %s%s" nodename domainname))
  905.  
  906.       (set organisation
  907.          (askstring
  908.             (prompt "Enter your organisation name")
  909.             (help "This can be anything you like, if you are a company use your company name\notherwise use something like your www page address.")
  910.             (default "Control Panel 6 User © Martin Hunt 1996")
  911.          )
  912.       )
  913.  
  914.       (set line5 ("Organization   %s" organisation))
  915.  
  916.       (set tz
  917.          (askstring
  918.             (prompt "Enter your timezone abbreviation")
  919.             (help "This should be a 3 letter code such as GMT, EST, CET")
  920.             (default "GMT")
  921.          )
  922.       )
  923.  
  924.       (set line6 ("Timezone   %s" tz))
  925.  
  926.       (set defaultnode
  927.          (askstring
  928.             (prompt "Enter your default node name")
  929.             (help "This should be the node you usually post mail too")
  930.             (default mailserver)
  931.          )
  932.       )
  933.  
  934.       (set line7 ("DefaultNode   %s" defaultnode))
  935.       (set line8 ("NNTPServer   %s" newsserver))
  936.       (set line9 ("ReplyPrefix   >"))
  937.       (set line10 ("MailEditor   c:ed"))
  938.       (set line11 ("NewsEditor   c:ed"))
  939.       (set line12 ("RMail   amitcp:bin/rmail"))
  940.       (set line13 ("SendMail   amitcp:bin/sendmail"))
  941.       (set nl "\n")
  942.       (textfile
  943.          (dest "uulib:config")
  944.          (append line1)
  945.          (append nl)
  946.          (append line2)
  947.          (append nl)
  948.          (append line3)
  949.           (append nl)
  950.          (append line4)
  951.           (append nl)
  952.          (append line5)
  953.           (append nl)
  954.          (append line6)
  955.           (append nl)
  956.          (append line7)
  957.           (append nl)
  958.          (append line8)
  959.           (append nl)
  960.          (append line9)
  961.           (append nl)
  962.          (append line10)
  963.          (append nl)
  964.          (append line11)
  965.           (append nl)
  966.          (append line12)
  967.           (append nl)
  968.          (append line13)
  969.       )
  970.  )
  971. )
  972.  
  973. (set pm ("Postmaster: %s" username))
  974.  
  975. (textfile
  976.    (dest "t:tmpaliases")
  977.    (append "Postmaster: $user")
  978. )
  979.  
  980. (run "type t:tmpaliases >> uulib:aliases"
  981. )
  982.  
  983. (run "cp:prefs.exe"
  984.    (prompt "Starting Main Preference Editor" )
  985.    (help "To get help with the prefs read the documentation file\nIf you have amigaguide you can get context sensitive help")
  986.    (confirm)
  987.    (safe)
  988. )
  989.  
  990.  
  991. (exit "Please Read Amitcp:docs/cp6.guide\n&\namitcp:docs/controlpanelprefs.guide\nfor useage instructions\n\nCP6 - Martin Hunt 1996")
  992.